-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Maintenance] Convert ExpenseGroup, ExpenseCategory, IncomeCategory components to Typescript. #1897
[Maintenance] Convert ExpenseGroup, ExpenseCategory, IncomeCategory components to Typescript. #1897
Conversation
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset No files were changed View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
@@ -36,7 +34,6 @@ function SidebarCategory({ | |||
editing, | |||
style, | |||
isLast, | |||
onDragChange, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused
782c1ca
to
e50e3b8
Compare
function ExpenseCategory({ | ||
cat, | ||
budgetArray, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
@@ -67,7 +90,6 @@ function ExpenseCategory({ | |||
onEditName={onEditName} | |||
onSave={onSave} | |||
onDelete={onDelete} | |||
onDragChange={onDragChange} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
end(item) { | ||
_onDragChange.current({ state: 'end', type, item }); | ||
end(dragState) { | ||
_onDragChange.current({ state: 'end', type, item: dragState.item }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed this - it was a bug - the type checking picked it up.
The end function passes in the DragState as its prop. We were passing the full DragState through as the "item" when we should pass the item that is being dragged(T).
I have checked and this isn't getting used anywhere - so the bug wasn't visible/depended on - safe to change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for all this hard work!
…omponents to Typescript. (actualbudget#1897)
Convert ExpenseGroup, ExpenseCategory, IncomeCategory components to Typescript.
#1483